# encoding: utf-8

from random import choice

times = 100000
myfirst_choice_n = 0
mychange_choice_n = 0
a = ['羊1', '羊2', '车']

for i in range(times):
	car_inDoor = choice(a)
	my_guess = choice(a)
	if car_inDoor == my_guess:
		myfirst_choice_n += 1
	else:
		mychange_choice_n += 1
		
		
print('不更改选择得到汽车的概率为:{:.5f}'.format(myfirst_choice_n/times))
print('更改选择得到汽车的概率为:{:.5f}'.format(mychange_choice_n/times))

	
	
		
	